package com.cssl.controller;

import com.cssl.domain.dto.DtsBrandDto;
import com.cssl.openFeign.DtsbrandCilent;
import com.cssl.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/brand")
public class DtsbrandController {
    @Autowired
    DtsbrandCilent cilent;

    @PostMapping("/list")
    Result dtsissuelist(@RequestBody DtsBrandDto dtsBrandDto){
        return cilent.dtsissuelist(dtsBrandDto);
    }

    @DeleteMapping("/delete")
    Result dtsbranddelete(@RequestParam("ids") String ids){
        return cilent.dtsbranddelete(ids);
    }

    @PostMapping("/updatebrand")
    Result updatebrand(@RequestBody Map updatebrand){
        return cilent.updatebrand(updatebrand);
    }
    @PostMapping("/addbrand")
    Result addbrand(@RequestBody Map addbrand){
        return cilent.addbrand(addbrand);
    }
}
